Skip to content

Add prerender-hapi plugin for @hapi/hapi v21+#1

Open
Lasalot wants to merge 2 commits intomainfrom
add-prerender-hapi
Open

Add prerender-hapi plugin for @hapi/hapi v21+#1
Lasalot wants to merge 2 commits intomainfrom
add-prerender-hapi

Conversation

@Lasalot
Copy link
Copy Markdown
Collaborator

@Lasalot Lasalot commented Apr 17, 2026

Summary

  • Modern rewrite of the abandoned wrangr/hapi-prerender package
  • Updated to @hapi/hapi v21+ plugin API (exports.plugin, async register, h.response().takeover())
  • Replaced deprecated request and hoek packages with built-in fetch (Node 18+)
  • Updated bot list with modern crawlers (GPTBot, ClaudeBot, Amazonbot, Perplexity, etc.)

Test plan

  • 6 smoke tests covering: plugin registration, browser passthrough, bot interception, static asset bypass, _escaped_fragment_, fetch error fallback
  • Run with npm test inside prerender-hapi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant